package cn.shengchao.examstar.distribute.infrastrure.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.Data;
import top.continew.starter.extension.crud.model.entity.BaseIdDO;

@Data
@TableName(value = "distribute_task_prepare_content")
public class DistributeTaskPrepareContent extends BaseIdDO {

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 订单子记录id
     */
    @TableField(value = "pay_item_id")
    private Long payItemId;

    /**
     * 产品id
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 订单类型COURSE课程THIRD_MEMBER
     */
    @TableField(value = "product_type")
    private String productType;

    /**
     * 任务id
     */
    @TableField(value = "distribute_task_id")
    private Long distributeTaskId;

    /**
     * 作者id
     */
    @TableField(value = "author_user_id")
    private Long authorUserId;

    /**
     * 内容供应的分账配置id(0是没有）
     */
    @TableField(value = "distribute_content_id")
    private Long distributeContentId;

    /**
     * 供应商用户节点id
     */
    @TableField(value = "distribute_content_node_id")
    private Long distributeContentNodeId;

    /**
     * 分销比例
     */
    @TableField(value = "stable_percent")
    private BigDecimal stablePercent;

    /**
     * 0记录，1分销完成
     */
    @TableField(value = "`status`")
    private Integer status;

}